import styles from './App.module.css'
import { BrowserRouter, Route, Switch, HashRouter } from 'react-router-dom'
import { HomePage } from './pages/home/HomePage'

function App() {
  return (
    <div className={styles['App-wrap']}>
      <div className={styles.App}>
        <HashRouter>
          <Switch>
            <Route exact path='/' component={HomePage} />
            <Route path='/login' render={() => <h1>注册</h1>} />
            <Route render={() => <h1>404</h1>} />
          </Switch>
        </HashRouter>
      </div>
    </div>
  )
}

export default App
